<template>
    <div id="fuHead">
        <div id="icon" class="left">
            <i class="el-icon-s-home"></i>
        </div>
        <div class="left divFont">
            学员管理系统
        </div>
        <!--    头像   -->
        <div class="right">
            <el-dropdown>
             <span class="el-dropdown-link">
             <span id="loginName">username</span>
              <el-avatar id="imgHead" size="medium"
                   src="https://img2.baidu.com/it/u=101509557,1920236483&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500">
              </el-avatar>
             </span>
            <el-dropdown-menu slot="dropdown">
                <el-dropdown-item>退出登录</el-dropdown-item>
            </el-dropdown-menu>
            </el-dropdown>

        </div>
        <!--    用户    -->
        <div></div>
        <div class="clear"></div>

    </div>
</template>

<script>
    export default {
        // eslint-disable-next-line vue/multi-word-component-names
        name: "Head"
    }
</script>

<style scoped>
    #fuHead{
        background-color: #21965d;
        height: 60px;
        width: 100%;
        line-height: 60px;
    }
    * {
        margin: 0px;
        padding: 0px;
    }
    #icon{
        font-size: 36px;
    }
    .left{
        float: left;
        margin-left: 20px;
    }
    .right{
        float: right;

    }
    .clear{
        clear: both;
    }
    .divFont{
        font-size: 30px;
    }
    #imgHead{
        /*margin-top: 11px;*/
        line-height: 60px;
        /*水平居中*/
        vertical-align: middle;
    }
    .el-dropdown-link{
        font-size: 20px;
        margin-right: 25px;
    }
    #loginName{
        margin-right: 15px;
    }
</style>